/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.integralrecord.entity;

import com.jeeplus.modules.member.entity.Member;
import java.util.Date;
import com.jeeplus.modules.pointslottery.entity.PointsLottery;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 积分抽奖记录Entity
 * @author w
 * @version 2021-03-09
 */
public class IntegralRecord extends DataEntity<IntegralRecord> {
	
	private static final long serialVersionUID = 1L;
	private Integer percentNo;		// 期数
	private Member member;		// 中奖用户
	private String prizeStatus;		// 是否开奖（0否1是）
	private String orderNo;		// 编号
	private PointsLottery pointsLottery;		// 场次
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间

	private String isGroup;			//是否成团
	
	public IntegralRecord() {
		super();
	}

	public IntegralRecord(String id){
		super(id);
	}

	@ExcelField(title="期数", align=2, sort=1)
	public Integer getPercentNo() {
		return percentNo;
	}

	public void setPercentNo(Integer percentNo) {
		this.percentNo = percentNo;
	}
	
	@ExcelField(title="中奖用户", fieldType=Member.class, value="member.loginName", align=2, sort=2)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="是否开奖（0否1是）", dictType="yes_no", align=2, sort=3)
	public String getPrizeStatus() {
		return prizeStatus;
	}

	public void setPrizeStatus(String prizeStatus) {
		this.prizeStatus = prizeStatus;
	}
	
	@ExcelField(title="编号", align=2, sort=4)
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	@ExcelField(title="场次", fieldType=PointsLottery.class, value="pointsLottery.integralName", align=2, sort=11)
	public PointsLottery getPointsLottery() {
		return pointsLottery;
	}

	public void setPointsLottery(PointsLottery pointsLottery) {
		this.pointsLottery = pointsLottery;
	}
	
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	@ExcelField(title="是否成团（0否1是）", dictType="yes_no", align=2, sort=12)
	public String getIsGroup() {
		return isGroup;
	}

	public void setIsGroup(String isGroup) {
		this.isGroup = isGroup;
	}
}